/**
 * 
 */
package com.yuedao.sender.service;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Service;

import com.yuedao.sender.model.BaseInfoDriver;

/**
 * @author Administrator
 *
 */
@Service
public interface BaseInfoDriverRepository extends
		JpaRepository<BaseInfoDriver, Integer> {
	// 拿取未发送的数据(sendflag=0)
	List<BaseInfoDriver> findBySendFlag(int flag);
	
	@Query(value = "select * from  base_info_driver where license_id=?1", nativeQuery = true)
	List<BaseInfoDriver> findByLicenseId(String LicenseId);
}
